home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14345 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: druid.borland.com!usenet
  2. From: aphrael <aphrael@slaughter.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Can't link a .lib file...
  5. Date: Fri, 29 Mar 1996 16:49:12 -0800
  6. Organization: aphrael
  7. Message-ID: <315C8508.553B@slaughter.com>
  8. References: <315AF5AB.7294@halcyon.com>
  9. NNTP-Posting-Host: minasanor.borland.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (Win95; I)
  14.  
  15. Glen Parker wrote:
  16.  
  17. As I understand your problem, the issue is this:
  18.  
  19. you are trying to import a static lib created in the COFF format. BC++ 
  20. does not do this. You need to use the DLL provided by the vendor, and 
  21. run implib on that DLL (running implib on a .lib file is useless).
  22.  
  23. If you don't have a DLL, you need to get one; you cannot statically link 
  24. to a library which uses the COFF object format.
  25.  
  26. > To all concerned...
  27. > I am trying to write a small 32 bit windows app to send mail from the command
  28. > line using Borland C++ 4.0.  No big deal, I don't think, but here is my
  29. > problem:
  30. > I get an error when I try to link MAPI32.lib, which I found in the new MS
  31. > SDK.  So I tried to use ImpLib.exe to create a different import library from
  32. > MAPI32.lib in my system32 dir.  It blows up.  And it blows up trying to run
  33. > on all the other 32-bit dlls I tried too.  AND, the compiler has the same
  34. > error linking ALL of the 32-bit import files I tried!  The linker error goes
  35. > like this:
  36. > Bad object file '..\..\mstools\lib\mapi32.lib' near file offset 0.
  37. > OK, what's the deal?  Can't Borland's compiler link in 32-bit libraries
  38. > generated by Microsoft?  Can't ImpLib.exe generate import files for 32-bit
  39. > DLL's?  Do I need a new version of ImpLib?  I can't find one.  Wouldn't you
  40. > think that ImpLib.exe would be a freeby from Borland (like anything is
  41. > free from Borland anymore, ha ha...)?  Hmmmmmmmmmmmmmmmm...  Maybe it's time
  42. > to switch to VC++?
  43. > Well, enough whining...  Any insight will be appreciated, and thanx in
  44. > advance...
  45. > Glen Parker
  46.